import request from '../utils/httpRequest';
//获取banner
export const getBanner = (position) => {
  return request.get({
    url: `/app-api/promotion/banner/list?position=${position}`,
  });
};
//获取分类
export const getCategoryList = () => {
  return request.get({
    url: '/app-api/product/category/list',
  });
};

// 获取精选店铺列表数据
export const getJxStoreList = (data) => {
  return request.get({
    url: '/app-api/promotion/activity/pageShops',
    data,
  });
};

// 获取精选商品列表数据
export const getJxGoodsList = (data) => {
  return request.get({
    url: '/app-api/promotion/activity/pageProducts',
    data,
  });
};
